package com.springcloud.myfeign.controller;

import com.springcloud.myfeign.myfeign.HelloWorldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class MyController {
	@Autowired
	HelloWorldService helloWorldFeignService;

	@RequestMapping(value = "/hi",method = RequestMethod.GET)
	public String sayHello(@RequestParam("name") String name){
		return helloWorldFeignService.qqq(name);
	}
}
